package com.zzb.weixin.model.datacube;
import com.zzb.weixin.constant.WXJsonName;
import com.zzb.weixin.json.JsonObject;
/**
 *接口分析数据
 * @author user
 *
 */
public class InterfaceSummary{
	private String refDate;//分享的人数
	private int callbackCount;//通过服务器配置地址获得消息后，被动回复用户消息的次数
	private int failCount;//上述动作的失败次数
	private int totalTimeCost;//总耗时，除以callback_count即为平均耗时
	private int maxTimeCost;//最大耗时
	
	public InterfaceSummary(JsonObject jo) {
		refDate = jo.getAsString(WXJsonName.REF_DATE);
		callbackCount = jo.getAsInt(WXJsonName.CALLBACK_COUNT);
		failCount = jo.getAsInt(WXJsonName.FAIL_COUNT);
		totalTimeCost = jo.getAsInt(WXJsonName.TOTAL_TIME_COST);
		maxTimeCost = jo.getAsInt(WXJsonName.MAX_TIME_COST);
	}
	public String getRefDate() {
		return refDate;
	}
	public void setRefDate(String refDate) {
		this.refDate = refDate;
	}
	public int getCallbackCount() {
		return callbackCount;
	}
	public void setCallbackCount(int callbackCount) {
		this.callbackCount = callbackCount;
	}
	public int getFailCount() {
		return failCount;
	}
	public void setFailCount(int failCount) {
		this.failCount = failCount;
	}
	public int getTotalTimeCost() {
		return totalTimeCost;
	}
	public void setTotalTimeCost(int totalTimeCost) {
		this.totalTimeCost = totalTimeCost;
	}
	public int getMaxTimeCost() {
		return maxTimeCost;
	}
	public void setMaxTimeCost(int maxTimeCost) {
		this.maxTimeCost = maxTimeCost;
	}
}
